
//获取token
export const getToken = (() => {
    return localStorage.getItem("accToken");
})

///是否是经办人
/// 4 -经办人 5 负责人
export const isAgent = (() => {
    const role = localStorage.getItem("ruleCode");
    return role == 4 ? true : false
})

export const removeToken = (() => {
    localStorage.removeItem("accToken");
    localStorage.removeItem("ruleCode");
})